// sonet/textui/browser/VisitAgent.java
package sonet.textui.browser;


import static ist.po.ui.Dialog.IO;
import ist.po.ui.Command;
import ist.po.ui.DialogException;
import java.io.IOException;
import sonet.*;
import sonet.textui.*;

public class VisitAgent extends Command<BrowsingState> {
	public VisitAgent(BrowsingState state) {
		super(false, MenuEntry.VISIT_AGENT, state);
	}
	/**
	 * @see ist.po.ui.Command#execute()
	 */
	@Override
	public final void execute()  throws DialogException, IOException {
		_receiver.visiting = Operations.requestAgent(_receiver,sonet.textui.agents.Message.reqKey());
		sonet.textui.agent.MenuBuilder.menuFor(_receiver);
	}
}
